﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Caifu.WebSite.Member
{
    public partial class PrintCookie : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.Cookies["u"] != null)
            {
                Response.Write("服务端读取到的Cookie的值为：" + Request.Cookies["u"].Value);
                Response.Write("<br/>");
                Response.Write("Cookie的有效期为（cookie传入到服务器端不带有日期的信息的）：" + Request.Cookies["u"].Expires);
            }
            else
            {
                Response.Write("您的cookie已过期");
            }
        }
    }
}